package stack_queue.queue;

import stack_queue.queue.impl.LinkedQueue;
import stack_queue.queue.impl.MyQueue;

public class  QueueTest {
    public static void main(String[] args) {
//        Queue queue = new LinkedQueue();
        Queue queue = new MyQueue(3);
        queue.offer(1);
        queue.offer(3);
        // front [1,3] tail
        System.out.println(queue);
        queue.poll();
        // front [5] tail
        System.out.println(queue);
        queue.offer(5);
        System.out.println(queue);
        System.out.println(queue.peek());
        System.out.println(queue.rear());


    }
}
